//
//  StatusNormalCell.swift
//  weibo
//
//  Created by 吴婷婷 on 15/11/12.
//  Copyright © 2015年 wutingting. All rights reserved.
//

import UIKit
import SnapKit

class StatusNormalCell: StatusCell {
    override var viewModel: StatusVewModel? {
        didSet {
            pictureView.snp_updateConstraints { (make) -> Void in
                let offset = viewModel?.thumbnail?.count > 0 ? StatusCellMargin: 0
//                print(offset)
                make.top.equalTo(contentLabel.snp_bottom).offset(offset)
            
            }
        }
    }
    
    override func setupUI() {
        super.setupUI()
        
        pictureView.snp_makeConstraints { (make) -> Void in
            make.top.equalTo(contentLabel.snp_bottom).offset(StatusCellMargin)
            make.left.equalTo(contentLabel.snp_left)
            make.width.equalTo(300)
            make.height.equalTo(90)
        }
    }

}
    